package com.example.demo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
* @ClassName IndexController
* @Description TODO
* @Author HP
* @Date 8:48 2022/7/18
* @Version 1.0
**/
@Controller
@RequestMapping
public class IndexController {

    @RequestMapping
    @ResponseBody
    public String test(){
        return "test01";
    }
    @RequestMapping("test2")
    public String test2(){
        return "test2";
    }

}
